package com.ktjy.ch15.service.impl;

import com.ktjy.ch15.entity.LanguageCategory;
import com.ktjy.ch15.entity.Video;
import com.ktjy.ch15.mapper.LanguageCategoryMapper;
import com.ktjy.ch15.service.LanguageCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("languageCategoryService")
public class LanguageCategoryServiceImpl implements LanguageCategoryService {

    @Autowired
    private LanguageCategoryMapper languageCategoryMapper;

    @Override
    public List<LanguageCategory> findAll() {
        return languageCategoryMapper.getAll();
    }

    @Override
    public List<Video> findAllVideo() {
        return languageCategoryMapper.getAllVideo();
    }
}
